package com.min.redis.infrastructure.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 歌曲信息表
 * </p>
 *
 * @author mybatisplus generator
 * @since 2024-03-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_song")
public class SongPO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
      @TableId("id")
    private Long id;

    /**
     * 歌曲名
     */
    @TableField("song_name")
    private String songName;

    @TableField("singer")
    private String singer;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 最近更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 逻辑删除
     */
    @TableField("is_delete")
    private Integer isDelete;


    public static final String ID = "id";

    public static final String SONG_NAME = "song_name";

    public static final String SINGER = "singer";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String IS_DELETE = "is_delete";

}

/*
CREATE TABLE `t_song` (
  `id` bigint NOT NULL COMMENT 'id',
  `song_name` varchar(64) COMMENT '歌曲名',
  `songer` varchar(64) COMMENT '歌手',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近更新时间',
  `is_delete` smallint NOT NULL DEFAULT 0 COMMENT '逻辑删除',
  PRIMARY KEY(`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COMMENT = '歌曲信息表';

* */
